home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_12.lha / 8_12 / 8_12a.h next >
Text File  |  1993-08-08  |  453b  |  21 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / A streambuf with a
  6. / bit extra thrown in.
  7. truct extrabuf : public streambuf
  8.  
  9.    istream *in;
  10.    char dobuffering;
  11.  
  12.    extrabuf(istream &inp) { in = &inp; dobuffering = 0; }
  13.    ~extrabuf() { }
  14.  
  15.    int overflow(int);
  16.    int underflow();
  17.    int reallocate();
  18.    void setbuffering();
  19.    void resetbuffering();
  20. ;
  21.